.class Lcom/example/m6shop/GoodsShowActivity$6;
.super Ljava/lang/Thread;
.source "GoodsShowActivity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/example/m6shop/GoodsShowActivity;->savegoods()Z
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/example/m6shop/GoodsShowActivity;


# direct methods
.method constructor <init>(Lcom/example/m6shop/GoodsShowActivity;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lcom/example/m6shop/GoodsShowActivity$6;->this$0:Lcom/example/m6shop/GoodsShowActivity;

    .line 488
    invoke-direct {p0}, Ljava/lang/Thread;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 21

    .prologue
    .line 490
    invoke-super/range {p0 .. p0}, Ljava/lang/Thread;->run()V

    .line 493
    new-instance v9, Landroid/os/Message;

    invoke-direct {v9}, Landroid/os/Message;-><init>()V

    .line 495
    .local v9, "msg":Landroid/os/Message;
    sget-object v18, Ljava/lang/System;->out:Ljava/io/PrintStream;

    const-string v19, "\u5f00\u59cb\u6293\u53d6\u6570\u636e---"

    invoke-virtual/range {v18 .. v19}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V

    .line 496
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6shop/GoodsShowActivity$6;->this$0:Lcom/example/m6shop/GoodsShowActivity;

    move-object/from16 v18, v0

    const-string v19, "userInfo"

    .line 497
    const/16 v20, 0x0

    .line 496
    invoke-virtual/range {v18 .. v20}, Lcom/example/m6shop/GoodsShowActivity;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v11

    .line 498
    .local v11, "preferences":Landroid/content/SharedPreferences;
    const-string v18, "uid"

    const-string v19, ""

    move-object/from16 v0, v18

    move-object/from16 v1, v19

    invoke-interface {v11, v0, v1}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    .line 499
    .local v2, "account":Ljava/lang/String;
    const-string v18, "pass"

    const-string v19, ""

    move-object/from16 v0, v18

    move-object/from16 v1, v19

    invoke-interface {v11, v0, v1}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v10

    .line 500
    .local v10, "password":Ljava/lang/String;
    if-eqz v2, :cond_0

    const-string v18, ""

    move-object/from16 v0, v18

    invoke-virtual {v2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v18

    if-eqz v18, :cond_1

    .line 501
    :cond_0
    invoke-static {}, Lmyclass/Util;->dismisDialog()V

    .line 502
    const-string v18, "nologin"

    move-object/from16 v0, v18

    iput-object v0, v9, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 503
    const/16 v18, 0x1

    move/from16 v0, v18

    iput v0, v9, Landroid/os/Message;->arg1:I

    .line 504
    sget-object v18, Lcom/example/m6shop/GoodsShowActivity;->h:Landroid/os/Handler;

    move-object/from16 v0, v18

    invoke-virtual {v0, v9}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    .line 565
    :goto_0
    return-void

    .line 510
    :cond_1
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6shop/GoodsShowActivity$6;->this$0:Lcom/example/m6shop/GoodsShowActivity;

    move-object/from16 v18, v0

    const v19, 0x7f070007

    invoke-virtual/range {v18 .. v19}, Lcom/example/m6shop/GoodsShowActivity;->findViewById(I)Landroid/view/View;

    move-result-object v7

    check-cast v7, Landroid/widget/EditText;

    .line 511
    .local v7, "goodsname":Landroid/widget/EditText;
    invoke-virtual {v7}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v18

    invoke-interface/range {v18 .. v18}, Landroid/text/Editable;->toString()Ljava/lang/String;

    move-result-object v18

    invoke-virtual/range {v18 .. v18}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v18

    .line 512
    const-string v19, "%"

    const-string v20, ""

    invoke-virtual/range {v18 .. v20}, Ljava/lang/String;->replaceAll(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v18

    const-string v19, " "

    const-string v20, ""

    invoke-virtual/range {v18 .. v20}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object v16

    .line 514
    .local v16, "tempname":Ljava/lang/String;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6shop/GoodsShowActivity$6;->this$0:Lcom/example/m6shop/GoodsShowActivity;

    move-object/from16 v18, v0

    const v19, 0x7f070066

    invoke-virtual/range {v18 .. v19}, Lcom/example/m6shop/GoodsShowActivity;->findViewById(I)Landroid/view/View;

    move-result-object v6

    check-cast v6, Landroid/widget/EditText;

    .line 515
    .local v6, "goodscount":Landroid/widget/EditText;
    invoke-virtual {v6}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v18

    invoke-interface/range {v18 .. v18}, Landroid/text/Editable;->toString()Ljava/lang/String;

    move-result-object v18

    invoke-virtual/range {v18 .. v18}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v18

    .line 516
    const-string v19, "%"

    const-string v20, ""

    invoke-virtual/range {v18 .. v20}, Ljava/lang/String;->replaceAll(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v18

    const-string v19, " "

    const-string v20, ""

    invoke-virtual/range {v18 .. v20}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object v15

    .line 518
    .local v15, "tempcount":Ljava/lang/String;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6shop/GoodsShowActivity$6;->this$0:Lcom/example/m6shop/GoodsShowActivity;

    move-object/from16 v18, v0

    const v19, 0x7f070067

    invoke-virtual/range {v18 .. v19}, Lcom/example/m6shop/GoodsShowActivity;->findViewById(I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Landroid/widget/EditText;

    .line 519
    .local v5, "goodscost":Landroid/widget/EditText;
    invoke-virtual {v5}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v18

    invoke-interface/range {v18 .. v18}, Landroid/text/Editable;->toString()Ljava/lang/String;

    move-result-object v18

    invoke-virtual/range {v18 .. v18}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v18

    .line 520
    const-string v19, "%"

    const-string v20, ""

    invoke-virtual/range {v18 .. v20}, Ljava/lang/String;->replaceAll(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v18

    const-string v19, " "

    const-string v20, ""

    invoke-virtual/range {v18 .. v20}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object v14

    .line 522
    .local v14, "tempcost":Ljava/lang/String;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6shop/GoodsShowActivity$6;->this$0:Lcom/example/m6shop/GoodsShowActivity;

    move-object/from16 v18, v0

    const v19, 0x7f070068

    invoke-virtual/range {v18 .. v19}, Lcom/example/m6shop/GoodsShowActivity;->findViewById(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Landroid/widget/EditText;

    .line 523
    .local v4, "goodsbagcost":Landroid/widget/EditText;
    invoke-virtual {v4}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v18

    invoke-interface/range {v18 .. v18}, Landroid/text/Editable;->toString()Ljava/lang/String;

    move-result-object v18

    invoke-virtual/range {v18 .. v18}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v18

    .line 524
    const-string v19, "%"

    const-string v20, ""

    invoke-virtual/range {v18 .. v20}, Ljava/lang/String;->replaceAll(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v18

    const-string v19, " "

    const-string v20, ""

    invoke-virtual/range {v18 .. v20}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object v13

    .line 525
    .local v13, "tempbagcost":Ljava/lang/String;
    sget-object v18, Ljava/lang/System;->out:Ljava/io/PrintStream;

    const-string v19, "\u8c03\u7528\u66f4\u83b7\u53d6\u793e\u6caa\u5267-"

    invoke-virtual/range {v18 .. v19}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V

    .line 527
    new-instance v18, Ljava/lang/StringBuilder;

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6shop/GoodsShowActivity$6;->this$0:Lcom/example/m6shop/GoodsShowActivity;

    move-object/from16 v19, v0

    move-object/from16 v0, v19

    iget-object v0, v0, Lcom/example/m6shop/GoodsShowActivity;->m:Lmyapp/MyApp;

    move-object/from16 v19, v0

    invoke-virtual/range {v19 .. v19}, Lmyapp/MyApp;->getWebConfig()Ljava/lang/String;

    move-result-object v19

    invoke-static/range {v19 .. v19}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v19

    invoke-direct/range {v18 .. v19}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v19, "/index.php?ctrl=app&action=addgoos&typeid="

    invoke-virtual/range {v18 .. v19}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v18

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6shop/GoodsShowActivity$6;->this$0:Lcom/example/m6shop/GoodsShowActivity;

    move-object/from16 v19, v0

    move-object/from16 v0, v19

    iget-object v0, v0, Lcom/example/m6shop/GoodsShowActivity;->typeid:Ljava/lang/String;

    move-object/from16 v19, v0

    invoke-virtual/range {v18 .. v19}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v18

    const-string v19, "&id="

    invoke-virtual/range {v18 .. v19}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v18

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6shop/GoodsShowActivity$6;->this$0:Lcom/example/m6shop/GoodsShowActivity;

    move-object/from16 v19, v0

    move-object/from16 v0, v19

    iget-object v0, v0, Lcom/example/m6shop/GoodsShowActivity;->goodsid:Ljava/lang/String;

    move-object/from16 v19, v0

    invoke-virtual/range {v18 .. v19}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v18

    const-string v19, "&name="

    invoke-virtual/range {v18 .. v19}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v18

    move-object/from16 v0, v18

    move-object/from16 v1, v16

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v18

    const-string v19, "&bagcost="

    invoke-virtual/range {v18 .. v19}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v18

    .line 528
    move-object/from16 v0, v18

    invoke-virtual {v0, v13}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v18

    const-string v19, "&count="

    invoke-virtual/range {v18 .. v19}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v18

    move-object/from16 v0, v18

    invoke-virtual {v0, v15}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v18

    const-string v19, "&cost="

    invoke-virtual/range {v18 .. v19}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v18

    move-object/from16 v0, v18

    invoke-virtual {v0, v14}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v18

    .line 529
    const-string v19, "&changeflag=1"

    invoke-virtual/range {v18 .. v19}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v18

    const-string v19, "&uid="

    invoke-virtual/range {v18 .. v19}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v18

    move-object/from16 v0, v18

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v18

    const-string v19, "&pwd="

    invoke-virtual/range {v18 .. v19}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v18

    move-object/from16 v0, v18

    invoke-virtual {v0, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v18

    const-string v19, "&datatype=json"

    invoke-virtual/range {v18 .. v19}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v18

    .line 527
    invoke-virtual/range {v18 .. v18}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v17

    .line 531
    .local v17, "url":Ljava/lang/String;
    sget-object v18, Ljava/lang/System;->out:Ljava/io/PrintStream;

    new-instance v19, Ljava/lang/StringBuilder;

    const-string v20, "\u8c03\u7528\u66f4\u65b0\u6570\u636e----------------------------"

    invoke-direct/range {v19 .. v20}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    move-object/from16 v0, v19

    move-object/from16 v1, v17

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v19

    invoke-virtual/range {v19 .. v19}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v19

    invoke-virtual/range {v18 .. v19}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V

    .line 532
    invoke-static/range {v17 .. v17}, Lmyclass/HttpConn;->getStr(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v12

    .line 533
    .local v12, "str":Ljava/lang/String;
    sget-object v18, Ljava/lang/System;->out:Ljava/io/PrintStream;

    new-instance v19, Ljava/lang/StringBuilder;

    const-string v20, "\u8fd4\u56de\u6570\u636e"

    invoke-direct/range {v19 .. v20}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    move-object/from16 v0, v19

    invoke-virtual {v0, v12}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v19

    invoke-virtual/range {v19 .. v19}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v19

    invoke-virtual/range {v18 .. v19}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V

    .line 536
    :try_start_0
    new-instance v8, Lorg/json/JSONObject;

    invoke-direct {v8, v12}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    .line 538
    .local v8, "json":Lorg/json/JSONObject;
    const-string v18, "error"

    move-object/from16 v0, v18

    invoke-virtual {v8, v0}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v18

    const-string v19, "true"

    invoke-virtual/range {v18 .. v19}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v18

    if-eqz v18, :cond_2

    .line 539
    invoke-static {}, Lmyclass/Util;->dismisDialog()V

    .line 541
    const-string v18, "msg"

    move-object/from16 v0, v18

    invoke-virtual {v8, v0}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v18

    move-object/from16 v0, v18

    iput-object v0, v9, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 542
    const/16 v18, 0x1

    move/from16 v0, v18

    iput v0, v9, Landroid/os/Message;->arg1:I

    .line 543
    sget-object v18, Lcom/example/m6shop/GoodsShowActivity;->h:Landroid/os/Handler;

    move-object/from16 v0, v18

    invoke-virtual {v0, v9}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    goto/16 :goto_0

    .line 557
    .end local v8    # "json":Lorg/json/JSONObject;
    :catch_0
    move-exception v3

    .line 559
    .local v3, "e":Lorg/json/JSONException;
    invoke-virtual {v3}, Lorg/json/JSONException;->printStackTrace()V

    .line 560
    invoke-static {}, Lmyclass/Util;->dismisDialog()V

    .line 562
    const/16 v18, 0x4

    move/from16 v0, v18

    iput v0, v9, Landroid/os/Message;->arg1:I

    .line 563
    sget-object v18, Lcom/example/m6shop/GoodsShowActivity;->h:Landroid/os/Handler;

    move-object/from16 v0, v18

    invoke-virtual {v0, v9}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    goto/16 :goto_0

    .line 546
    .end local v3    # "e":Lorg/json/JSONException;
    .restart local v8    # "json":Lorg/json/JSONObject;
    :cond_2
    :try_start_1
    const-string v18, "msg"

    move-object/from16 v0, v18

    invoke-virtual {v8, v0}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v18

    if-eqz v18, :cond_3

    .line 547
    invoke-static {}, Lmyclass/Util;->dismisDialog()V

    .line 548
    const/16 v18, 0x2

    move/from16 v0, v18

    iput v0, v9, Landroid/os/Message;->arg1:I

    .line 549
    sget-object v18, Lcom/example/m6shop/GoodsShowActivity;->h:Landroid/os/Handler;

    move-object/from16 v0, v18

    invoke-virtual {v0, v9}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    goto/16 :goto_0

    .line 553
    :cond_3
    invoke-static {}, Lmyclass/Util;->dismisDialog()V

    .line 554
    sget-object v18, Ljava/lang/System;->out:Ljava/io/PrintStream;

    const-string v19, "\u5173\u95ed\u63d0\u793a"

    invoke-virtual/range {v18 .. v19}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V

    .line 555
    const/16 v18, 0xa

    move/from16 v0, v18

    iput v0, v9, Landroid/os/Message;->arg1:I

    .line 556
    sget-object v18, Lcom/example/m6shop/GoodsShowActivity;->h:Landroid/os/Handler;

    move-object/from16 v0, v18

    invoke-virtual {v0, v9}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z
    :try_end_1
    .catch Lorg/json/JSONException; {:try_start_1 .. :try_end_1} :catch_0

    goto/16 :goto_0
.end method

.method public declared-synchronized start()V
    .locals 1

    .prologue
    .line 567
    monitor-enter p0

    :try_start_0
    invoke-super {p0}, Ljava/lang/Thread;->start()V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 568
    monitor-exit p0

    return-void

    .line 567
    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method
